#

from flask import current_app


def get_logger():
    app = current_app._get_current_object()
    with app.app_context():
        return app.logger
